/*
| ----------------------------------------------------------------------------------
| TABLE OF CONTENT
| ----------------------------------------------------------------------------------
-SETTING
-Preloader
-Scroll Animation
-Scale images
-Animated Entrances
-Chars Start
-Loader blocks
-Scroll up
-Zoom Images
-Isotope filter
-Select customization
-Main slider
-Sliders
-Slider numbers
-Video player
-View catalog
*/



$(document).ready(function () {




    /////////////////////////////////////
    // Select customization
    /////////////////////////////////////

    if ($('.selectpicker').length) {

        $('.selectpicker').selectpicker();
    }



    ////////////////////////////////////////////
    // Main slider
    ///////////////////////////////////////////


    if ($('#main-slider').length) {

        var sliderWidth = $("#main-slider").data("slider-width");
        var sliderHeigth = $("#main-slider").data("slider-height");
        var sliderArrows = $("#main-slider").data("slider-arrows");
        var sliderButtons = $("#main-slider").data("slider-buttons");

        $('#main-slider').sliderPro({
            width: sliderWidth,
            height: sliderHeigth,
            arrows: sliderArrows,
            buttons: sliderButtons,
            fade: true,
            fullScreen: true,
            touchSwipe: false,
            autoplay: true
        });
    }


    ////////////////////////////////////////////
    // Sliders
    ///////////////////////////////////////////

    if ($('.js-slider').length) {
        $('.js-slider').slick();
    }



    ////////////////////////////////////////////
    // Sliders with thumbnails
    ///////////////////////////////////////////

    if ($('.js-slider-for').length) {
        $('.js-slider-for').slick({
            arrows: false,
            fade: true,
            asNavFor: '.js-slider-nav'
        });
        $('.js-slider-nav').slick({
            slidesToShow: 5,
            slidesToScroll: 1,
            asNavFor: '.js-slider-for',
            focusOnSelect: true
        });
    }


});

